import request from "@/utils/request";

export function listKqAllExtendInfos(query) {
  return request({
    url: "/work/kqExtendInfo/",
    method: "get",
    params: query
  });
}

// 查询项目详细
export function getKqExtendInfo(id) {
  return request({
    url: "/work/kqExtendInfo/" + id + "/",
    method: "get"
  });
}

export function getExtendInfoByCompId(id) {
  return request({
    url: `/work/kqExtendInfo/getExtendInfoByCompId/${id}/`,
    method: "get"
  });
}

// 修改项目
export function updateKqExtendInfo(data) {
  return request({
    url: "/work/kqExtendInfo/" + data.id + "/",
    method: "put",
    data: data
  });
}

// 新增项目
export function addKqExtendInfo(data) {
  return request({
    url: "/work/kqExtendInfo/",
    method: "post",
    data: data
  });
}
